package com.woniuxy.impl;

import com.woniuxy.Person;

import java.util.List;
import java.util.Map;

/**
 * @Author: 马宇航
 * @Todo: TODO
 * @DateTime: 01/17/0017 下午 12:02
 * @Component: 成都蜗牛学苑
 **/
public class Japanese implements Person {
    private String name;
    private int age;
    private American american;//引用类型中国朋友
    private List<String> music;//作品
    private List<Map<Integer,String>>album;//LIST有map专辑
    private List<American>americans;//LIST有引用类型美国朋友

    @Override
    public String toString() {
        return "Japanese{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", american=" + american +
                ", music=" + music +
                ", album=" + album +
                ", americans=" + americans +
                '}';
    }
    public Japanese(){

    }
    public Japanese(String name, int age, American american, List<String> music, List<Map<Integer, String>> album, List<American> americans) {
        this.name = name;
        this.age = age;
        this.american = american;
        this.music = music;
        this.album = album;
        this.americans = americans;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public American getAmerican() {
        return american;
    }

    public void setAmerican(American american) {
        this.american = american;
    }

    public List<String> getMusic() {
        return music;
    }

    public void setMusic(List<String> music) {
        this.music = music;
    }

    public List<Map<Integer, String>> getAlbum() {
        return album;
    }

    public void setAlbum(List<Map<Integer, String>> album) {
        this.album = album;
    }

    public List<American> getAmericans() {
        return americans;
    }

    public void setAmericans(List<American> americans) {
        this.americans = americans;
    }

    @Override
    public void eat() {
        System.out.println("我是日本人，我不吃东西！");
    }
}